package com.cloudptt.api.product.func.sys.fsm;

public class SysConst 
{
//	public static final int Reg_Timeout_SIPSTATR                 = 50;
//	public static final int Reg_Timeout_Login                    = 5;
	
//	public static final int Status_Begin                    = -1;
//	public static final int Status_Suc                     = 0;
//	public static final int Status_Failed                  = 1;
//	public static final int Status_Timeout                 = 2;
//	public static final int Status_AuthTimeout             = 3;
	
//	public static final int LoginType_Login                = 1;
//	public static final int LoginType_Auto                 = 2;
	
	public static final int SysAction_Begin                    = 50;
//	protected static final int SysAction_Download_UeInitProfile   = SysAction_Begin + 1;
	protected static final int SysAction_HttpAuth                 = SysAction_Begin + 2;
	protected static final int SysAction_SipAuth                  = SysAction_Begin + 3;
	public static final int SysAction_Auth                     = SysAction_Begin + 5;
	public static final int SysAction_ReAuth                     = SysAction_Begin + 6;
	
	public static final int SysMsg_Begin                    		  = 100;
	public static final int SysMsg_Svr_Stop              = SysAction_Begin + 21;
	public static final int SysMsg_Svr_Start             = SysAction_Begin + 22;
	
	public static final int SysMsg_Get_Suc         = SysAction_Begin + 1;
	public static final int SysMsg_Get_Failed      = SysAction_Begin + 2;
	public static final int SysMsg_Get_Timeout     = SysAction_Begin + 3;
	
	public static final int SysMsg_Http_Auth_Suc         = SysAction_Begin + 4;
	public static final int SysMsg_Http_Auth_Failed      = SysAction_Begin + 5;
	public static final int SysMsg_Http_Auth_Timeout     = SysAction_Begin + 6;
	
	public static final int SysMsg_Sip_Auth_Suc          = SysAction_Begin + 7;
	public static final int SysMsg_Sip_Auth_Failed       = SysAction_Begin + 8;
	public static final int SysMsg_Sip_Auth_Timeout      = SysAction_Begin + 9;
	public static final int SysMsg_Sip_Auth_Relogin      = SysAction_Begin + 10;
	
//	public static final int SysMsg_Publish_Unauthorized  = SysAction_Begin + 10;
	public static final int SysMsg_Logout  = SysAction_Begin + 11;
	
	public static String sysActionTag(int type) {
		String tag="unknown type = " + type;
		switch (type)
		{
//		case SysAction_Download_UeInitProfile:
//			tag = "SysAction_Download_UeInitProfile";
//		break;
		case SysAction_HttpAuth:
			tag = "SysAction_HttpAuth";
		break;
		case SysAction_SipAuth:
			tag = "SysAction_SipAuth";
			break;
		case SysAction_Auth:
			tag = "SysAction_Auth";
			break;
		default:
			break;
		}
		return tag;
	}
	
	public static String sysMsgTag(int msg) {
		String tag="unknown + msg = " + msg ;
		switch (msg)
		{
		case SysMsg_Svr_Stop:
			tag = "SysMsg_Svr_Stop";
		break;
		case SysMsg_Svr_Start:
			tag = "SysMsg_Svr_Start";
		break;
		case SysMsg_Get_Suc:
			tag = "SysMsg_Get_Suc";
			break;
		case SysMsg_Get_Failed:
			tag = "SysMsg_Get_Failed";
			break;
		case SysMsg_Get_Timeout:
			tag = "SysMsg_Get_Timeout";
			break;
		case SysMsg_Http_Auth_Suc:
			tag = "SysMsg_Http_Auth_Suc";
		break;
		case SysMsg_Http_Auth_Failed:
			tag = "SysMsg_Http_Auth_Failed";
		break;
		case SysMsg_Http_Auth_Timeout:
			tag = "SysMsg_Http_Auth_Timeout";
		break;
		case SysMsg_Sip_Auth_Suc:
			tag = "SysMsg_Sip_Auth_Suc";
		break;
		case SysMsg_Sip_Auth_Failed:
			tag = "SysMsg_Sip_Auth_Failed";
		break;
		case SysMsg_Sip_Auth_Timeout:
			tag = "SysMsg_Sip_Auth_Timeout";
		break;
		case SysMsg_Logout:
			tag = "SysMsg_Logout";
		break;
		default:
			break;
		}
		return tag;
	}
	
	
}
